<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">
<html>
    <head>
        <title>Sale - appBuy</title>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <link href="css/style.css" rel="stylesheet" type="text/css" />
        <link rel="stylesheet" type="text/css" href="css/coin-slider.css" />
        <script type="text/javascript" src="js/cufon-yui.js"></script>
        <script type="text/javascript" src="js/droid_sans_400-droid_sans_700.font.js"></script>
        <script type="text/javascript" src="js/jquery-1.4.2.min.js"></script>
        <script type="text/javascript" src="js/script.js"></script>
        <script type="text/javascript" src="js/coin-slider.min.js"></script>
    </head>
    <%@ include file="../../userBar.jsp" %>
    <%@ include file="../../topBar.jsp" %>
    <%@ include file="../../sideBar.jsp" %>


    <div class="content">
    <div class="content_resize">
      <div class="mainbar">
       <div class="article">
           <jsp:useBean id="ventas" scope="request" class="java.util.Iterator" />
            <br><h2><span>Compra realizada correctamente!</span></h2><br>
            <%
            while(ventas.hasNext()){
              java.util.Map.Entry e = (java.util.Map.Entry)ventas.next();
              request.setAttribute("sale", (model.Sale) e.getValue());
            %>
            <jsp:useBean id="sale" scope="request" class="model.Sale" />
          <p class="infopost">Añadida <span class="date">el <jsp:getProperty name="sale" property="fecha" /></span> por <a href="/Appbuy/FrontController?form=readUserServlet&userName=<jsp:getProperty name="sale" property="usuario" />"><jsp:getProperty name="sale" property="usuario"/></a><a href="#" class="com"><b>Precio: <span><jsp:getProperty name="sale" property="importe" />€</span></b></a></p>
          <div class="clr"></div>
          <div class="post_content"><br>
                  <b>· Identificador:</b> <jsp:getProperty name="sale" property="id" /><br><br>
                  <b>· Producto:</b> <jsp:getProperty name="sale" property="productos" /><br><br>
                  <b>· Método de pago:</b> <jsp:getProperty name="sale" property="pago" /><br><br>
                  <b>· Dirección de envío:</b> <jsp:getProperty name="sale" property="direccion" /><br><br>
          </div>
          <div class="clr"></div>
        <%}%>
        </div>
      </div>
      <div class="clr"></div>
    </div>
  </div>
          <%@ include file="../../bottomBar.jsp" %>
</html>